// 面粉相关
import {
	request
} from "../utils/request"

export default {
	// 获取面粉信息
	fansInfo: (userId) => {
		return request({
			url: `/amianfrontend/fans/info/${userId}`
		})
	},

	// 面粉匹配
	fansMatch: (userId) => {
		return request({
			url: `/amianfrontend/fans/match`
		})
	},

	// 添加/取消关注
	userFollow: (masterId) => {
		return request({
			url: `/amianfrontend/userFollow/${masterId}`
		})
	},

	// 我的关注
	userFollowFollow: (pageSize, pageNum) => {
		return request({
			url: `/amianfrontend/userFollow/follow?pageSize=${pageSize}&pageNum=${pageNum}`
		})
	},

	// 我的粉丝
	userFollowFans: (pageSize, pageNum) => {
		return request({
			url: `/amianfrontend/userFollow/fans?pageSize=${pageSize}&pageNum=${pageNum}`
		})
	},

	// 相互关注
	userFollowEachOther: (pageSize, pageNum) => {
		return request({
			url: `/amianfrontend/userFollow/eachOther?pageSize=${pageSize}&pageNum=${pageNum}`
		})
	}
}
